<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试</title>
    <style>
        .menu{
            border: 1px solid #dee3eb;
            width: 1000px;
            margin: auto;
        }
        .menu a{
            /* 设置成行内块元素 */
            display: inline-block;
            color: #000;
            text-decoration: none;
            padding: 10px 32px 10px 10px;
            /* margin: 10px 32px 10px 10px; */
            /* 
            padding 内边距，内容和边框之间的距离，有背景
            margin  外边距，边框之外的距离，没有背景
            */
        }
        .menu a:hover{
            text-decoration: underline;
            color: #f50;
        }
    </style>
</head>

<body>
    <div class="menu">
        <a href="http://tuijian.hao123.com/">hao123推荐</a>
        <a href="http://tuijian.hao123.com/">hao123推荐</a>
        <a href="http://tuijian.hao123.com/">hao123推荐</a>
        <a href="http://tuijian.hao123.com/">hao123推荐</a>
        <a href="http://tuijian.hao123.com/">hao123推荐</a>
        <a href="http://tuijian.hao123.com/">hao123推荐</a>
        <a href="http://tuijian.hao123.com/">hao123推荐</a>
    </div>
</body>

</html>